
    <nav class="navbar navbar-default navbar-fixed-bottom" id="navFooter" role="navigation"
         ng-click="$event.preventDefault()" ng-controller="navController">
        <div class="container-fluid">
            <div class="">
                <ul class="nav navbar-nav">
                    <li ng-repeat="navItem in navItems" class="nav-bar" ng-class="{active: selectedItem == navItem.title}"
                            ng-click="itemClick($index)">
                        <a href="#">
                            <span class="icon-{{ navItem.title }}">
                                <if condition="$Think.session.is_read eq '1'">
                                    <span class="notice-unread-msg"></span>
                                </if>
                                {{ navItem.text }}
                            </span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <input id="curNav" type="hidden" value="<{$curNav}>">
        <input id="entrance" type="hidden" value="<{$Think.session.entrance}>">
    </nav>

    <script src="__COMMON__/md5.js"></script>
    <script src="__STATIC__/build/js/huokong.476e5b75.js"></script>

    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

    <php>
        $result = sharePage();
    </php>

    <script type="text/javascript">
        $(function() {
            $('#scrollTop').hide();
            //滚动显示/隐藏浮动层
            $(window).scroll(function () {
                st = $(window).scrollTop();
                if (st >= 140) {
                    $('#scrollTop').show(500);
                }else{
                    $('#scrollTop').hide(500,function(){
                        $('#scrollTop').stop();
                    });
                }
            });

            $('#scrollTop').click(function() {
                $("html,body").animate({scrollTop: 0},"slow");
            });
        });

        var title = '<{$result.title}>'; //标题
        var img = 'http://www.ihuokong.com/Public/static/mobile/img/sharelogo.jpg'; //图片
        var content = '<{$result.content}>'; //简介
        var link = '<{$result.url}>'; //链接
        wx.config({
            debug: false,
            appId: '<{$result.sign.appId}>',
            timestamp: <{$result.sign.timestamp}>,
            nonceStr: '<{$result.sign.nonceStr}>',
            signature: '<{$result.sign.signature}>',
            jsApiList: [
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage',
                'onMenuShareQQ',
                'onMenuShareWeibo',
                'hideMenuItems',
                'showMenuItems'
            ]
        });

        wx.ready(function () {
            //alert('注册成功');
            wx.onMenuShareAppMessage({
                title: title,
                desc: content,
                link: link,
                imgUrl: img,
                //type: '', // 分享类型,music、video或link，不填默认为link
                //dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                success: function () {
                    //alert('分享');
                },
                cancel: function () {
                    //alert('取消');
                }
            });

            wx.onMenuShareTimeline({
                title: title,
                link: link,
                imgUrl: img,
                success: function () {
                    //alert('分享');
                },
                cancel: function () {
                    //alert('取消');
                }
            });
            wx.onMenuShareQQ({
                        title: title,
                        desc: content,
                        link: link,
                        imgUrl: img,

                        // 用户确认分享后执行的回调函数
                success: function () {
                    // 用户确认分享后执行的回调函数
                },

                    cancel:function() {
                // 用户取消分享后执行的回调函数
            }
        });

        wx.onMenuShareWeibo({
                    title: title,
                    desc: content,
                    link: link,
                    imgUrl: img,

                success: function () {
            // 用户确认分享后执行的回调函数
        },
        cancel: function () {
            // 用户取消分享后执行的回调函数
        }
        });


        });


   </script>
</body>
</html>